import {request} from './request'
import { MSearchModelData} from '../entityapi/base'
// 获取数据，通过
export function getModelListAPI(searchModel: MSearchModelData) {
    return request({
        url: '/model/get_modelList',//此处为自己请求地址
        method: 'get',
        params:{//传参数对应param接收
            currentPage: searchModel.currentPage,
            pageSize: searchModel.pageSize,
            modelName: searchModel.modelName,
        }
    })
}
export function editIdentifyCycle(id:number,time:string){
    return request({
        url: '/model/update_model_cycle',//此处为自己请求地址
        method: 'post',
        params:{//传参数对应param接收
            id: id,
            cycle: time,
        }
    })
}

export function editStates(id:number,state:boolean){
    return request({
        url: '/model/update_model_state',//此处为自己请求地址
        method: 'post',
        params:{//传参数对应param接收
            id: id,
            state: state,
        }
    })
}
